package com.sentinel.demo.push.nacos.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Sentinel相关配置
 * @author dsy on 2019/12/9
 */
@Configuration
@PropertySource("sentinel.properties")
public class SentinelConfig {

    @Getter
    @Value("${sentinel.datasource.nacos.server-addr}")
    private String nacosServerAddr;

    @Getter
    @Value("${sentinel.datasource.nacos.groupId}")
    private String nacosGroupId;

    @Getter
    @Value("${sentinel.datasource.nacos.dataId}")
    private String nacosDtaId;

}
